<h1> Set integration parameters for <%= @simulation.name %> </h1>
<% form_for :integration_parameter, @integration_parameter, :url => { :action => 'create' }  do |f| %>
<h2> Important integration parameters: </h2>
	Algorithm type: <%= f.select :algorithm_type, IntegrationParameter::ALGORITHM_TYPES %> <br / >
	Start time: <%= f.text_field :start_time %> (days) <br />
	End time: <%= f.text_field :end_time %> (days) <br />
	Output interval: <%= f.text_field :output_interval %> (days) <br />
	Timestep: <%= f.text_field :time_step %> (days) <br />
	Acurracy: <%= f.text_field :accuracy %> <br />
<h2> Integration options: </h2>
	Stop integration after close encounter: <%= f.select :stop_after_close_encounter, IntegrationParameter::SELECT %> <br />
	Include collision fragmentation: <%= f.select :collision_fragmentation, IntegrationParameter::SELECT %> <br />
	Allow collisions: <%= f.select :allow_collisions, IntegrationParameter::SELECT %> <br />
	Express time in days or years: <%= f.select :time_format, IntegrationParameter::TIME %> <br />
	Express time relative to integration start time: <%= f.select :time_relative, IntegrationParameter::SELECT %> <br />
	Output precsion: <%= f.select :output_precision, IntegrationParameter::PRECISION %> <br />
	Include relativity in integration: <%= f.select :relativity, IntegrationParameter::SELECT %> <br />
	Include user-defined force: <%= f.select :user_force, IntegrationParameter::SELECT %> <br />
	Test particles per simulation: <%= f.text_field :particles_per_simulation %>
<h2> These parameters do not need to be adjusted often: </h2>
	Ejection distance: <%= f.text_field :ejection_distance %> (AU) <br />
	Solar radius: <%= f.text_field :solar_radius %> (AU) <br />
	Hill radii: <%= f.text_field :hill_radii %> (AU) <br />
	Number of timesteps between data dumps: <%= f.text_field :timesteps_between_data_dumps %> <br />
	Number of timesteps between periodice effects: <%= f.text_field :timesteps_between_periodic_effects %> <br />
	<%= f.hidden_field :simulation_id, :value => @simulation.id %>
	<%= f.submit "Submit" %>
<% end %>
